﻿function showUploadImages(width, height, top, right) {
    //set the uploader position settings
    $("#uploader").css("right", right + "px");
    $("#uploader").css("top", top + "px");
    $("#uploader").css("width", width + "px");
    $("#uploader").css("height", height + "px");

    //show the uploader
    $("#uploader").css("visibility", "visible");
    $("#uploader ul.plupload_filelist").css("height", (height - 150) + "px");
    $(".plupload.flash").css("top", (height - 50) + "px");
}

function hideUploadImages() {
    $("#uploader").css("visibility", "hidden");
}

function imageUploadedFlex() {
    $("#myContent")[0].imageUploaded();
}

$(document).ready(function () {
    $("#divMainDialog").bind("dialogbeforeclose", function (event, ui) {
        $("body").css({ overflow: 'inherit' });
    });
    $("#divMainDialog").bind("dialogopen", function (event, ui) {
        $("body").css({ overflow: 'hidden' });
    });
});